@import 'global';

body,p,ul,li,h1,h2,h3,h4{
	font-family: $main-font-family;
	margin: 0;
	padding: 0;
}

html,body{
	font-size: 13px;
	line-height: 24px;
	height: 100%;
}

a{
	text-decoration: none;
	color: $theme-color;
}

::-webkit-scrollbar-track-piece {
	background-color:#f5f5f5;
	border-left:1px solid #d2d2d2;
}
::-webkit-scrollbar {
	width:13px;
	height:13px;
}
::-webkit-scrollbar-thumb {
	background-color:#c2c2c2;
	background-clip:padding-box;
	border:1px solid #979797;
	min-height:28px;
}
::-webkit-scrollbar-thumb:hover {
	border:1px solid #636363;
	background-color:#929292;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], textarea {
	font-size: 13px;
	color: #333;
	vertical-align: middle;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: right center;
	border: 1px solid #ccc;
	border-radius: 3px;
	outline: none;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}

input[type="radio"],input[type="checkbox"]{
	margin: 4px 0 0;
	line-height: normal;
}

.checkbox, .radio{
	min-height: 20px;
	padding-left: 20px;
	line-height: 20px;
	margin: 0 0 0 20px;
}

input[type="radio"], input[type="checkbox"], .checkbox, .radio{
	float: left;
	margin-left: -20px;
	cursor: pointer;
}

.btn{
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 0;
	font-size: 14px;
	line-height: 20px;
	color: #333;
	text-align: center;
	text-shadow: 0 1px 1px rgba(255,255,255,0.75);
	vertical-align: middle;
	cursor: pointer;
	background-color: #f5f5f5;
	background-image: -moz-linear-gradient(top,#fff,#e6e6e6);
	background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));
	background-image: -webkit-linear-gradient(top,#fff,#e6e6e6);
	background-image: -o-linear-gradient(top,#fff,#e6e6e6);
	background-image: linear-gradient(to bottom,#fff,#e6e6e6);
	background-repeat: repeat-x;
	border: 1px solid #ccc;
	border-color: #e6e6e6 #e6e6e6 #bfbfbf;
	border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	border-bottom-color: #b3b3b3;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);

}

.btn:hover, .btn:focus {
	    background-position: 0 -15px;
	    color: #333;
	    background-color: #e6e6e6;
	    text-decoration: none;
	    transition: background-position 0.1s linear 0s;
	}

.clear::after {
	clear: both;
	content: " ";
	width: 0;
	height: 0;
	display: block;
}

.wrapper{
	padding: 0;
	margin: 0 0 -55px 0;
	min-height: 100%;

	.header{
		background-color: $theme-color;
		height: $banner-heigh;
		
		ul{
			max-width: $main-width;
			height: 100%;
			margin: auto;
			padding: 0 1.5em;
			color: white;
			
			li{
				list-style: none;
				float: left;
				display: inline-block;
				line-height: 45px;

				a{
					padding: 0 1.2em;
					display: inline-block;
					color: white;
				}

				.logo{
					font-size: 40px;
					display: inline-block;
					line-height: 45px;
				}

				input{
					color: #333;
					background-color: #fff;
					background-repeat: no-repeat;
					background-position: right center;
					border: 1px solid #ccc;
					border-radius: 3px;
					outline: none;
					box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
					margin: 0 1.2em;
				}

			}

			.right{
				float: right;

				img{
					width: $banner-heigh - 15 ;
					height: $banner-heigh - 15 ;
					vertical-align: middle;
					margin: -3px 10px 0 0;
					border-radius: 4px;
				}
			}

		}
	}

	.main{
		max-width: $main-width;
		display: block;
		margin: 0 auto;
		padding-bottom: $brace-height;
		
	}

}

.footer{
	background-color: white;
	width: 100%;
	color: $font-color-gray;

	.footer-wraper{
		border-top: 1px dashed #d6d6d6;
		margin: auto;
		max-width: $main-width;
		padding: 15px;

		a{
			color: $theme-color;
		}

		.left{
			float: left;
		}

		.right{
			float: right;

			.right-tag,div{
				border-right: gray 1px solid;
				display: inline-block;
				padding-right: 5px;
				line-height: 16px;
				color: $font-color-gray;
			}

			a{
				color: $font-color-gray;
			}
		}
	}
}

.info{
	width: 500px;
	border-radius: 4px;
	margin: 5px auto 5px auto;
	padding: 5px 10px 5px 10px;
}

.info-success{
	background-color: $bg-success;
}

.info-warning {
	background-color: $bg-warning;
}

.info-danger {
	background-color: $bg-danger;
}

.lang{
	display: inline-block;
	cursor: pointer;
	position: relative;

	ul{
		display: none;
		position: absolute;
		bottom: 24px;
		padding: 0px;
		margin: 0 0px 0 -5px;
		width: 70px;
		box-shadow: 0 0 2px 1px gray;
		background-color: white;
		
		li{
			list-style: none;
			border-bottom: 1px solid;
			padding: 0 5px;
		}
	}
}

.strong{
	font-weight: bolder !important;
}

.badge{
	float: right;
	display: inline-block;
	min-width: 10px;
	padding: 3px 7px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	background-color: #777;
	border-radius: 10px;
}

blockquote{
	position: relative;
	background: #EEE;
	text-align: left;
	margin: 20px 10px;
	padding: 3px 25px;
	color: #333;
	font-size: 12px;
	line-height: 22px;
	border-left: 3px solid #AAA;
}



.main{
	.pannel{
		width: 100%;
		overflow: hidden;

		.left-menu{
			width: 20%;
			height: 100%;
			float: left;

			ul{
				float: left;
				width: 100%;

				$list-border: 1px solid #ddd;
				li{
					list-style: none;
					border: $list-border;
					border-bottom: none;
					overflow: hidden;

					a{
						width: 100%;
						display: block;
						font-size: 80%;
						padding: 10px 15px;
						line-height: 16px;
						color: #444;
					}

					a:hover{
						// border-left: 2px solid #EFEFEF;
						background-color: #EFEFEF !important;
						color: #000 !important;
					}
				}

				.current{
					a{
						color: #000 !important;
						font-weight: bold;
						border-left: 2px solid #d26911;
					}
				}

				li:first-child{
					@extend .list-header;
					
					padding: 10px 15px;
					line-height: 16px;
				}

				li:last-child{
					border-bottom-left-radius: 4px;
					border-bottom-right-radius: 4px;
					border-bottom: $list-border;
				}
			}
		}

		.main-pannel{
			width: 78%;
			float: right;
			padding: 0 5px;
		}
	}
}

// error info, 404/501 etc
.main{
	.error-info{
		h1{
			padding-top: 60px;
			font-size: 160px;
			margin: 100px;
			text-align: center;
			color: gray;
		}

		.tips{
			margin: 40px;
			text-align: center;
			color: gray;
		}
	}
}